<script>
export default {
  globalConfig: {
    usingComponents: {
      'van-tag': 'vant-weapp/dist/tag/index',
      'van-row': 'vant-weapp/dist/row/index',
      'van-col': 'vant-weapp/dist/col/index',
      'van-icon': 'vant-weapp/dist/icon/index',
      'van-button': 'vant-weapp/dist/button/index',
      'van-tabbar': 'vant-weapp/dist/tabbar/index',
      'van-tabbar-item': 'vant-weapp/dist/tabbar-item/index',
      'van-submit-bar': 'vant-weapp/dist/submit-bar/index'
    }
  },
  created () {
    // 调用API从本地缓存中获取数据
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    console.log('app created and cache logs by setStorageSync')
  }
}
</script>

<style>
  @import 'styles/iconfont.css';
  page {
    background:#f1f1f1;
  }
.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

}
/* this rule will be remove */
* {
  transition: width 2s;
  -moz-transition: width 2s;
  -webkit-transition: width 2s;
  -o-transition: width 2s;
  background:#f1f1f1;
}
page{background: #f1f1f1;}
</style>
